package org.dromara.common.mqtt.event;

import lombok.Getter;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.springframework.context.ApplicationEvent;

@Getter
public class MqttMessageEvent extends ApplicationEvent {
    private final MqttMessage mqttMessage;

    public MqttMessageEvent(MqttMessage mqttMessage, Object source) {
        super(source);
        this.mqttMessage = mqttMessage;
    }
}
